package com.maykk.Demo06;

public class Demo02 {
    public static void main(String[] args) {
        Demo01 demo01 = new Demo01();
        demo01.name = "小马";
        demo01.setAge(-10);
        demo01.setSex("男");
        System.out.println(demo01.getAge() + "岁的" + demo01.name
                + "，" +demo01.getSex());
        demo01.methodPub();
    }
}